<?php
    if (!file_exists("../config.php")) {
      echo "Missing config.php";
      die;
  }
  include("../config.php");
  include("../lang/english.php");
  include('../class/class.database.php');
  $db = new database($server, $username, $password, $database);
  $db->connect(database);
  
    if ($_SESSION['user_level'] != 1 or (!$_SESSION['signed_in'])) {
      header("location: redirect.php");
  } else {
  echo "<a href='javascript: history.go(-1) '><< Back to ACP</a>";
 echo phpinfo(); 
  echo "<a href='javascript: history.go(-1) '><< Back to ACP</a>";
  }
  
      $pageTitle = "Php Info";
      $pageContents = ob_get_contents();
      ob_end_clean();
      echo str_replace('<!--TITLE-->', $pageTitle, $pageContents);
?>